Pass arguments into a function - Linux Shell Scripting